package org.glut.cloud.repairManage.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.glut.cloud.repairManage.dto.RepairPeopleStateDto;
import org.glut.cloud.repairManage.entity.RepairPersonnel;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 维修人员表 服务类接口
 *
 * @author linghuhuolian
 * @since 2024-08-13 15:47
 */
public interface IRepairPersonnelService extends IService<RepairPersonnel> {

    IPage page2(Page<RepairPersonnel> page, Wrapper wrapper);

    /**
     * 根据维修人员的用户名查找维修人员id
     * @param username
     * @return 维修人员id
     */
    Integer getRepairPersonnelId(String username);


    /**
     *
     * @param ids
     * @return
     */
    boolean fakeRemoveByIds(List<Integer> ids);

    /**
     * 查看维修人员状态
     *
     */
    RepairPeopleStateDto getRepairPersonnelState(Integer id);
}

